package server.controller.tenant;

import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import plug.result.RetResponse;
import plug.result.RetResult;
import server.dao.MoneyRecordDao;
import server.model.entity.MoneyRecord;
import server.model.vo.Cache;
import server.service.MoneyRecordService;

/**
 * @description:
 * @author: 许哲
 * @createTime: 2021/11/22 17:52
 * @version: 1.0
 */
@CrossOrigin(origins = "*")
@RequestMapping("v2/api/h5")
@RestController
public class H5Controller {
    @Autowired
    private MoneyRecordDao moneyRecordDao;

    @GetMapping("/dy/info/{dyOrder}")
    public RetResult getInfo(@PathVariable String dyOrder) {
        return RetResponse.makeOKRsp(moneyRecordDao.findByDyOrder(dyOrder));
    }
}
